package com.cdh.edu.feign;

import com.cdh.edu.feign.fallback.OssFileServiceFallBack;
import com.cdh.utils.result.Restful;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-oss",fallback = OssFileServiceFallBack.class)
public interface OssFileService {

    @GetMapping("ossService/test")
    Restful test();

    @DeleteMapping("ossService/remove")
    Restful removeFileAvatar(@RequestBody String url);
}
